import request from '@/utils/request'

// 获取抗遗忘周期列表
export const reviewCycleList = (params) => {
    return request.get('/review-cycle/list-page', { params })
}

//获取详情
export const reviewCycleDetail = (params) => {
    return request.get('/review-cycle', { params })
}

//创建抗遗忘
export const reviewCycleCreate = (params) => {
    return request.post('/review-cycle', params)
}

// 根据学习记录补创建抗遗忘
export const reviewCreatePatch = (params) => {
    return request.post('/review-cycle/learn', params)
}

// 更新抗遗忘状态
export const reviewChangeStatus = (params) => {
    return request.put('/review-cycle/status', params)
}